<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html >
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>众智软件科技有限责任公司</title>
		<link  rel="stylesheet" href="<%=basePath %>css/style.css" type="text/css" />
		<script type="text/javascript" src="<%=basePath %>js/jquery-2.1.1.min.js" ></script>
		<script type="text/javascript">
	 		/* function correctPNG() 
			   {
			   for(var i=0; i<document.images.length; i++)
			      {
			   var img = document.images[i]
			   var imgName = img.src.toUpperCase()
			   if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
			      {
			   var imgID = (img.id) ? "id='" + img.id + "' " : ""
			   var imgClass = (img.className) ? "class='" + img.className + "' " : ""
			   var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
			   var imgStyle = "display:inline-block;" + img.style.cssText 
			   if (img.align == "left") imgStyle = "float:left;" + imgStyle
			   if (img.align == "right") imgStyle = "float:right;" + imgStyle
			   if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle  
			   var strNewHTML = "<span " + imgID + imgClass + imgTitle
			   + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
			      + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
			   + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>" 
			   img.outerHTML = strNewHTML
			   i = i-1
			      }
			      }
			   }
			window.attachEvent("onload", correctPNG); */
			$(function(){
				$("button").click(function(){
					var userName = $('#userName').val();
					var userPass = $('#userPass').val();
					$.post("login/loadUserByName.do?userName="+userName+"&userPass="+userPass,function(data){
						if(data.msg=='ok'){
							location.href="nuiiqk/index.jsp";
						}else{
							alert(data.msg);
						}
					},"JSON");
				});
			})
		</script>
		
		<style type="text/css">
			.tb960x90 {display:none!important;display:none}
		</style>
	</head>
	
	<body>
		<div id="box"><div id="logo" width="716" height="39">众智软件科技有限责任公司</div></div>
		<!-- <img src="../images/logo.png" width="716" height="39" /> -->
		<div id="block">
       		<div id="userLogin"><img src="<%=basePath %>images/user-login.png" width="194" height="36" /></div>
			<div id="login">
				<div id="left">
					<img src="<%=basePath%>images/yaoshi.png" width="115" height="128" />
				</div>
				<div id="right">
					<div class="field ph-hide">
						<label for="TPL_username_1">用户名：</label> 
						<input type="text" name="userName" id="userName" class="login-text J_UserName" value="" maxlength="32" tabindex="1" />
					</div>
					<div class="field">
						<label id="password-label">密&nbsp;&nbsp;&nbsp;码：</label> 
						<input type="password" name="userPass" id="userPass" class="login-text J_UserName" value="" maxlength="32" tabindex="1" />
					</div>
				</div>
			</div>
			<div id="bottom"> <button type="submit" class="J_Submit" tabindex="5">登&nbsp;录</button></div>
		</div>
		<div id="floor">&copy;2017 &nbsp;&nbsp;众智软件科技有限责任公司</div>
	</body>
</html>
